import Router from "koa-router";
import { queryAllControllers, regRoute } from "./utils.js";

let router = new Router();

//传入路由和controllers包下的可被浏览器解析的js文件完整路径
regRoute(router, queryAllControllers("controllers"));

export default router.routes();
